package cn.jetpiece.cloud.joss.sdk.core.oss.model.enums;

/**
 * 上传对象模式枚举
 *
 * @author XuJZ
 * @since  2021/1/23
 */
public enum PutObjectModeEnum {

    /**
     * 文件流上传
     */
    FILE_STREAM(1, "文件流上传"),

    /**
     * Base64编码上传
     */
    BASE64(2, "Base64编码上传"),

    /**
     * 通过Url上传
     */
    URL(3, "通过Url上传");

    PutObjectModeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    private final int code;

    private final String message;

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
